<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>博客页面</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f9f9f9;
            background-image: url('/images/04620269ccddb6b.jpg');
            display: flex;
        }

        /* 左侧导航栏 */
        .sidebar {
            width: 250px;
            background-color: #333;
            color: white;
            padding: 20px;
            height: 100vh;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        }

        .sidebar h3 {
            text-align: center;
            font-size: 22px;
            margin-bottom: 30px;
        }

        .user-info {
            text-align: center;
            margin-bottom: 30px;
            color: #ddd;
            cursor: pointer;
        }

        .user-info img {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            margin-bottom: 10px;
        }

        .all-articles-button {
            display: block;
            width: 100%;
            padding: 10px;
            text-align: center;
            background-color: #007BFF;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin-bottom: 20px;
            font-size: 18px;
            transition: background-color 0.3s;
        }

        .all-articles-button:hover {
            background-color: #0056b3;
        }

        /* 搜索框样式 */
        .search-container {
            margin-bottom: 20px;
        }

        .search-container form {
            display: flex;
            width: 100%;
        }

        .search-container input[type="text"] {
            flex-grow: 1;
            padding: 10px;
            font-size: 16px;
            border: 1px solid #ddd;
            border-radius: 5px 0 0 5px;
        }

        .search-container input[type="submit"] {
            padding: 10px;
            font-size: 16px;
            border: 1px solid #ddd;
            border-radius: 0 5px 5px 0;
            background-color: #28a745;
            color: white;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .search-container input[type="submit"]:hover {
            background-color: #1e7e34;
        }

        /* 主体内容 */
        .main-content {
            flex: 1;
            padding: 20px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            margin-left: 20px;
            display: flex;
            flex-direction: column;
            align-items: center; /* 使按钮组居中 */
        }

        /* 按钮组样式 */
        .button-group {
            display: flex;
            flex-direction: column;
            align-items: center; /* 使按钮居中 */
            gap: 20px; /* 按钮之间的间距 */
            margin-bottom: 20px;
        }

        .button {
            padding: 15px 20px;
            font-size: 18px; /* 增大字体大小 */
            background-color: #007BFF;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            transition: background-color 0.3s;
            text-align: center;
            width: 200px; /* 设置按钮宽度 */
            height: 50px; /* 设置按钮高度 */
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .button:hover {
            background-color: #0056b3;
        }

        /* 底部 */
        .footer {
            padding: 20px;
            text-align: center;
            background-color: #333;
            color: white;
        }
    </style>
</head>
<body>

<!-- 左侧导航栏 -->
<div class="sidebar">
    <a href="/login/users" class="user-info">
        <img src="https://via.placeholder.com/60" alt="User Avatar">
        <p>本地用户</p>
    </a>
    <div class="search-container">
        <form action="/search" method="GET">
            <input type="text" name="query" placeholder="搜索博客..." required>
            <input type="submit" value="搜索">
        </form>
    </div>
    <button class="all-articles-button" onclick="location.href='/allarticles'">全部文章</button>
</div>

<!-- 主体内容 -->
<div class="main-content">
    <div class="blog-section">
        <div class="button-group">
            <a href="/tagName?tagName=science" class="button">科学</a>
            <a href="/tagName?tagName=life" class="button">生活</a>
            <a href="/tagName?tagName=game" class="button">游戏</a>
            <a href="/tagName?tagName=study" class="button">学习</a>
            <a href="/tagName?tagName=education" class="button">教育</a>
        </div>
    </div>
    <!-- 底部 -->
    <div class="footer">
        <p>版权所有 © 2024 博客页面</p>
    </div>
</div>

</body>
</html>